The Week View component > FWeekView.setDayArray() |
FWeekView.setDayArray()
Availability
Flash Player 6.
Usage
myWeekView_wkv.setDayArray (days)
Parameters
days An array of Strings that contain the names
of the days of the week.
Returns
Nothing
Description
Takes an array of Strings that contain the names of the days of the week. The first seven items of the array will be used to display the names of the days of the week (starting with Sunday) within the component.
Example
The week_getSelectedDate.fla example file contains an example of using this method.
The following code redefines how the days of the week are displayed within the component.
var days_fr = ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"];
var months_fr = ["jan", "fev", "mar", "avr", "mai", "jui", "jui",
"aou", "sep", "oct", "nov", "dec"];
myWeekView_wkv.setDayArray(days_fr);
myWeekView_wkv.setMonthArray(months_fr);
function onDayChange()
{
trace("Selected Date : " + myWeekView_wkv.getValue());
}
myWeekView_wkv.setChangeHandler("onDayChange");
See also